'use strict'

const fs = require('fs');
const { promisify } = require('util');
const writeFile = promisify(fs.writeFile);

exports.saveJsonFile = async (fileName, data) => {
    //write json data to file
    await writeFile(fileName, JSON.stringify(data));
    return true;
}